Architecting on AWS: Create an Elastic System with Auto Scaling

==================================================================================================================

Using this command reference. 

==================================================================================================================

1. Locate the section you need. Each section in this file matches a section in the lab instructions.

2. Replace items in brackets - [] - with appropriate values. For example, in this command you would replace the value - [JobFlowID] - (including the brackets) with the parameter indicated in the lab instructions:

elastic-mapreduce --list [JobFlowID]

would become

elastic-mapreduce --list abc123

3. Do NOT enable the Word Wrap feature in Windows Notepad or the text editor you use to view this file.


==================================================================================================================

Task 4.4: Define Launch Configuration 

==================================================================================================================

#!/bin/bash
yum -y update
yum -y install httpd-2.2.27 php-5.3.29
chkconfig httpd on
wget https://us-west-2-aws-training.s3.amazonaws.com/awsu-ilt/architecting/v4.2/lab-4-working-with-autoscaling/static/phpapp.zip
unzip phpapp.zip -d /var/www/html/
service httpd start
yum -y install stress
sleep 90
stress --cpu 4 --io 4 --vm 2 --hdd 4 -t 400
sleep 300
stress --cpu 6 --io 6 --vm 4 --hdd 6 -t 400
sleep 300
stress --cpu 8 --io 8 --vm 6 --hdd 8 -t 400



Copyright 2014 Amazon Web Services, Inc. or its affiliates. All rights reserved.
